home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
cli
/
system2.arc
/
DELDIR.XSL
< prev
next >
Wrap
Text File
|
1985-11-20
|
639b
|
43 lines
*
* DELDIR.XSL
* XSL shell script to delete a folder and its contents
* (will not recursively delete folders)
* Syntax: DELDIR directory
* (C) Copyright 1989 by DW Software
* *** PRINT SYNTAX MESSAGE ***
if notequal %argc 1
echo " Syntax: DELDIR directory"
echo
exit -2
endif
* *** REMOVE FILES WITHIN FOLDER ***
rm %1\*.*
if notequal %result 0
echo " deldir: can't delete files within directory "%1
echo
exit -1
endif
* *** REMOVE FOLDER ***
rmdir %1
if notequal %result 0
echo " deldir: can't remove directory "%1
echo
exit -1
endif
* *** FINISHED OK ***
exit